(:: pragma bea:global-element-parameter parameter="$submitOrder1" element="ns0:SubmitOrder" location="../WSDLs/SubmitOrder.wsdl" ::)
(:: pragma bea:global-element-return element="ns1:createAccountRequest" location="../xsd/CreateAccountRequest.xsd" ::)

declare namespace ns1 = "http://integration.clearwire.com/public/interfaces/AAA/CreateAccountRequest.xsd";
declare namespace ns0 = "http://www.example.org/SubmitOrder/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($submitOrder1 as element(ns0:SubmitOrder))
    as element(ns1:createAccountRequest) {
        <ns1:createAccountRequest>
            <ns1:account>{ data($submitOrder1/customer_id) }</ns1:account>
            <ns1:domain>{ data($submitOrder1/realm) }</ns1:domain>
        </ns1:createAccountRequest>
};

declare variable $submitOrder1 as element(ns0:SubmitOrder) external;

xf:test($submitOrder1)